home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / CMAcceleration.p < prev    next >
Text File  |  1996-05-01  |  4KB  |  123 lines

  1. {
  2.      File:        CMAcceleration.p
  3.  
  4.      Contains:    ColorSync 2.0 Acceleration Component Interfaces
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT CMAcceleration;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CMACCELERATION__}
  28. {$SETC __CMACCELERATION__ := 1}
  29.  
  30. {$I+}
  31. {$SETC CMAccelerationIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MEMORY__}
  35. {$I Memory.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __COMPONENTS__}
  38. {$I Components.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __CMAPPLICATION__}
  41. {$I CMApplication.p}
  42. {$ENDC}
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48. {$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
  49. {  -------------------------------------- version info  }
  50.  
  51. CONST
  52.     cmAccelerationInterfaceVersion = 1;
  53.  
  54. {  -------------------------------------- Component Type  }
  55.     cmAccelerationComponentType    = 'csac';
  56.  
  57. {  -------------------------------------- Required Component function selectors  }
  58.     cmLoadTables                = 0;
  59.     cmCalculateData                = 1;
  60.  
  61. {  -------------------------------------- table data for acceleration component  }
  62.  
  63. TYPE
  64.     CMAccelerationTableDataPtr = ^CMAccelerationTableData;
  65.     CMAccelerationTableData = RECORD
  66.         inputLutEntryCount:        LONGINT;                                {  count of entries for input lut for one dimension }
  67.         inputLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 16 for WORD ) }
  68.         inputLut:                Handle;                                    {  handle to input lut }
  69.         outputLutEntryCount:    LONGINT;                                {  count of entries for output lut for one dimension     }
  70.         outputLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 8 for BYTE ) }
  71.         outputLut:                Handle;                                    {  handle to output lut }
  72.         colorLutInDim:            LONGINT;                                {  input dimension  ( e.g. 3 for LAB ; 4 for CMYK ) }
  73.         colorLutOutDim:            LONGINT;                                {  output dimension ( e.g. 3 for LAB ; 4 for CMYK ) }
  74.         colorLutGridPoints:        LONGINT;                                {  count of gridpoints for color lut ( for one Dimension )     }
  75.         colorLutWordSize:        LONGINT;                                {  count of bits of each entry ( e.g. 8 for BYTE ) }
  76.         colorLut:                Handle;                                    {  handle to color lut }
  77.         inputColorSpace:        CMBitmapColorSpace;                        {  packing info for input }
  78.         outputColorSpace:        CMBitmapColorSpace;                        {  packing info for output }
  79.         userData:                Ptr;
  80.         reserved1:                LONGINT;
  81.         reserved2:                LONGINT;
  82.         reserved3:                LONGINT;
  83.         reserved4:                LONGINT;
  84.         reserved5:                LONGINT;
  85.     END;
  86.  
  87.     CMAccelerationTableDataHdl            = ^CMAccelerationTableDataPtr;
  88. {  -------------------------------------- calc data for acceleration component  }
  89.     CMAccelerationCalcDataPtr = ^CMAccelerationCalcData;
  90.     CMAccelerationCalcData = RECORD
  91.         pixelCount:                LONGINT;                                {  count of input pixels }
  92.         inputData:                Ptr;                                    {  input array }
  93.         outputData:                Ptr;                                    {  output array }
  94.         reserved1:                LONGINT;
  95.         reserved2:                LONGINT;
  96.     END;
  97.  
  98.     CMAccelerationCalcDataHdl            = ^CMAccelerationCalcDataPtr;
  99. {
  100.  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  101.                 A c c e l e r a t i o n   C o m p o n e n t   I n t e r f a c e s
  102.  ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
  103. }
  104. FUNCTION CMAccelerationLoadTables(CMSession: ComponentInstance; tableData: CMAccelerationTableDataPtr): CMError;
  105.     {$IFC NOT GENERATINGCFM}
  106.     INLINE $2F3C, $0004, $0000, $7000, $A82A;
  107.     {$ENDC}
  108. FUNCTION CMAccelerationCalculateData(CMSession: ComponentInstance; calcData: CMAccelerationCalcDataPtr): CMError;
  109.     {$IFC NOT GENERATINGCFM}
  110.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  111.     {$ENDC}
  112. {$ENDC}
  113. {$ALIGN RESET}
  114. {$POP}
  115.  
  116. {$SETC UsingIncludes := CMAccelerationIncludes}
  117.  
  118. {$ENDC} {__CMACCELERATION__}
  119.  
  120. {$IFC NOT UsingIncludes}
  121.  END.
  122. {$ENDC}
  123.